﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
	xmlns:model="clr-namespace:Skyper.Model"
	xmlns:ctrl="clr-namespace:Skyper.Controls"
	>
	<Style TargetType="ctrl:ContactControl">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="ctrl:ContactControl">
					<Grid>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="Auto" />
							<ColumnDefinition Width="*" />
						</Grid.ColumnDefinitions>

						<Image Grid.Column="0" x:Name="avatarImage" Height="80" Width="80" Source="/Images/General/Contact_48x48.png" />
						<StackPanel Grid.Column="1">
							<StackPanel>
								<TextBlock Text="{Binding Fullname}"  Style="{StaticResource PhoneTextLargeStyle}" />
								<TextBlock Text="{Binding Mood}" Style="{StaticResource PhoneTextNormalStyle}" TextWrapping="Wrap" FontFamily="{StaticResource PhoneFontFamilySemiBold}"/>
							</StackPanel>
							<StackPanel Orientation="Horizontal">
								<TextBlock Text="Mobile:" Style="{StaticResource PhoneTextSmallStyle}"/>
								<TextBlock Text="{Binding PhoneMobile}" Style="{StaticResource PhoneTextSmallStyle}" FontFamily="{StaticResource PhoneFontFamilySemiBold}"/>
							</StackPanel>
						</StackPanel>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
    <Style TargetType="ctrl:MessageTextControl">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ctrl:MessageTextControl">
                    <StackPanel>
                        <TextBlock Text="{Binding Text}" />
                        <TextBlock Text="{Binding Time}" />
                    </StackPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>